Near-optimal labeling schemes for nearest common ancestors

نویسندگان

  • Stephen Alstrup
  • Esben Bistrup Halvorsen
  • Kasper Green Larsen
چکیده

We consider NCA labeling schemes: given a rooted tree T , label the nodes of T with binary strings such that, given the labels of any two nodes, one can determine, by looking only at the labels, the label of their nearest common ancestor. For trees with n nodes we present upper and lower bounds establishing that labels of size (2± ǫ) log n, ǫ < 1 are both sufficient and necessary. Alstrup, Bille, and Rauhe (SIDMA’05) showed that ancestor and NCA labeling schemes have labels of size log n + Ω(log log n). Our lower bound increases this to log n+Ω(log n) for NCA labeling schemes. Since Fraigniaud and Korman (STOC’10) established that labels in ancestor labeling schemes have size log n + Θ(log log n), our new lower bound separates ancestor and NCA labeling schemes. Our upper bound improves the 10 log n upper bound by Alstrup, Gavoille, Kaplan and Rauhe (TOCS’04), and our theoretical result even outperforms some recent experimental studies by Fischer (ESA’09) where variants of the same NCA labeling scheme are shown to all have labels of size approximately 8 log n.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Nearest Common Ancestors: Universal Trees and Improved Labeling Schemes

We investigate the nearest common ancestor (NCA) function in rooted trees. As the main conceptual contribution, the paper introduces universal trees for the NCA function: For a given family of rooted trees, an NCA-universal tree S is a rooted tree such that any tree T of the family can be embedded into S such that the embedding of the NCA in T of two nodes of T is equal to the NCA in S of the e...

متن کامل

Labeling Schemes for Nearest Common Ancestors through Minor-Universal Trees

Preprocessing a tree for finding the nearest common ancestor of two nodes is a basic tool with multiple applications. Quite a few linear-space constant-time solutions are known and the problem seems to be well-understood. This is however not so clear if we want to design a labeling scheme. In this model, the structure should be distributed: every node receives a distinct binary string, called i...

متن کامل

Optimizing taxonomic semantic web queries using labeling schemes

This paper focuses on the optimization of the navigation through voluminous subsumption hierarchies of topics employed by Portal Catalogs like Netscape Open Directory ODP We advocate for the use of labeling schemes for modeling these hierarchies in order to e ciently answer queries such as subsumption check descendants ancestors or nearest common ances tor which usually require costly transitiv...

متن کامل

Informative Labeling Schemes for the Least Common Ancestor Problem

We address the problem of labeling the nodes of a tree such that one can determine the identifier of the least common ancestor of any two nodes by looking only at their labels. This problem has application in routing and in distributed computing in peer-to-peer networks. A labeling scheme using Θ(log n)-bit labels has been presented by Peleg. By engineering this scheme and a new one due to the ...

متن کامل

Short Labels for Lowest Common Ancestors in Trees

We evaluate the practical performance of labeling schemes for lowest common ancestors in trees. We develop different variants for encoding the labels. We then perform a thorough experimental evaluation of these schemes on a variety of tree shapes and sizes. We find that in general non-prefix-free codes lead to shorter labels than those that are prefix-free, while having roughly the same query t...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2014